package com.huilang.deme2;

public interface CoffeeFactory {
    Coffee createCoffee();
}



class AmericanCoffeeFactory implements CoffeeFactory {
    @Override
    public Coffee createCoffee() {
        return new AmericanCoffee();
    }
}
class LatteCoffeeFactory implements CoffeeFactory {
    @Override
    public Coffee createCoffee() {
        return new LatteCoffee();
    }
}

class Latte2CoffeeFactory implements CoffeeFactory {
    public Coffee createCoffee() {
        return new LatteCoffee2();
    }
}